package org.flashbrighton.as3bots.models
{
	import Box2D.Dynamics.b2Body;
	
	import flash.display.Sprite;
	import flash.geom.Point;
	
	import org.flashbrighton.as3bots.bots.BaseBot;
	
	public class GemModel
	{		
		public var body:b2Body;
		public var sprite:Sprite;
		public var bonus:int;
		public var initPosition:Point;
		public var isCollected:Boolean;
		
		/**
		 * Constructor.
		 */
		public function GemModel(body:b2Body, sprite:Sprite, bonus:int, position:Point)
		{	
			this.body = body;
			this.sprite = sprite;
			this.bonus = bonus;
			this.initPosition = position;
		}
		
		
		public function get position():Point{
			return new Point(body.GetPosition().x, body.GetPosition().y);
		}
		
				
	}
}